/*
 * @Author: your name
 * @Date: 2020-10-29 16:17:17
 * @LastEditTime: 2020-10-29 17:10:51
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \就业班练习d:\桌面\ma-pc\src\api\fans.js
 */
import axios from '@/utils/request'

/**
 * @description: 获取粉丝列表
 * @param {Number} page  页数
 * @param {Number} per_page  一页显示几条
 * @return {Promise}
 */
// eslint-disable-next-line camelcase
export const hGetFans = (page, per_page) => {
  return axios({
    method: 'GET',
    url: '/mp/v1_0/followers',
    params: {
      page,
      per_page
    }
  })
}

/**
 * @description: 获取粉丝统计数据
 * @return {Promise}
 */
export const GetFollowers = () => {
  return axios({
    method: 'GET',
    url: '/mp/v1_0/statistics/followers'
  })
}
